require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')

require('animate.css')

require('../css/advert.less')




/**
 * 
 */


// 文档加载事件
document.addEventListener('DOMContentLoaded',function(){

    //获取元素

    const countdown = document.querySelector('#countdown')
    const skip = document.querySelector('#skip')


    // 倒计时
    function countdownTime(){

        let time = 5;
        let timeClear = setInterval(function(){
            --time;
            if(time ==0){
                clearInterval(timeClear);
                location.href = './logon.html'
            }else{
                countdown.textContent = time + '秒' 
            }


        },1000)

    }
    countdownTime()

    // 点击跳转
    skip.addEventListener('click',function(){
    location.href = './logon.html'
    })


})

